package year2021.month0234;

import java.text.MessageFormat;

public class StringTest {

    public static void main(String[] args){
        String str1 = String.format("%0" + 6 + "d", 123);
        System.out.println(str1);
        String str2 = MessageFormat.format("123.{0}", "456");
        System.out.println(str2);
    }

}
